#!/bin/bash
echo "你的爱好是什么"
select hobby in "编程" "游戏" "篮球" "游泳"
do
  case $hobby in
  "编程")
  echo "编程,多敲代码"
  break
  ;;
  "游戏")
  echo "少玩游戏"
  break
  ;;
  "篮球"|"游泳")
  echo "运动有利健康"
  break
  ;;
  *)
  echo "输入错误，请重新输入"
  esac
done